import request from '@/utils/request'
import Qs from 'qs'

export function listRole(query) {
	return request.post('/adminLogin/selectAdminByPage', Qs.stringify({
		...query
	}))
}

export function createRole(data) {
	return request.post('/adminLogin/addAdmin', {
		...data
	})
}

export function updateRole(data) {
	return request.post('/adminLogin/updateAdmin', {
		...data
	})
}

export function deleteRole(id) {
	return request.get('/adminLogin/deleteAdmin', {
		id: id
	})
}
